<!DOCTYPE html>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<script src="../../../resources/gesture-util.js"></script>
<link href="synthetic-pinch-zoom-gesture.css" rel="stylesheet">
<script src="synthetic-pinch-zoom-gesture.js"></script>

<script>
  // TODO(bokan) - This test is a temporary stop-gap to prevent regressing
  // partially fixed pinch-zoom on desktops. This test uses very large error
  // bounds on offset to account for existing bugs. Once those are fixed and
  // the non -desktop.html version of the test is passing this test can be
  // removed.

  const TOUCH_INPUT = GestureSourceType.TOUCH_INPUT;

  const t = async_test(
      "This tests that gpuBenchmarking.pinchBy is relatively accurate for quick touchscreen pinch gestures.");
  const testCases = [
    { startingScale: 1, scale: 3, speed: 1000, gestureSource: TOUCH_INPUT, msg: "Zooming in quickly" },
    { startingScale: 3, scale: 0.5, speed: 1000, gestureSource: TOUCH_INPUT, msg: "Zooming out quickly" },
    { startingScale: 1, scale: 3, speed: 50000, gestureSource: TOUCH_INPUT, msg: "Zooming in instantly" },
    { startingScale: 4, scale: 0.5, speed: 50000, gestureSource: TOUCH_INPUT, msg: "Zooming out instantly" },
  ];
  addEventListener('load', () => {
    runAllTestCasesDesktop(t, testCases).then(t.done.bind(t));
  });
</script>
<div></div>
